<template>
  <layout title="shadow阴影">
    <layout-content title="基础使用">
      <view class="shadow-block tn-shadow"></view>
      <view class="shadow-block tn-shadow-wrap"></view>
      <view class="shadow-block image tn-shadow-blur tn-color-white"><view class="title">图片背景</view></view>
    </layout-content>

    <layout-content title="背景阴影">
      <view class="shadow-block tn-shadow-blue"></view>
      <view class="shadow-block tn-shadow-green--light"></view>
      <view class="shadow-block tn-shadow-orange--disabled"></view>
      <view class="shadow-block tn-shadow-teal--dark"></view>
      <view class="shadow-block tn-bg-indigo tn-shadow-blur"></view>
      <view class="shadow-block tn-bg-aquablue tn-shadow-blur"></view>
    </layout-content>

    <layout-content title="文字阴影">
      <view class="shadow-title tn-color-blue tn-text-shadow-blue--light">图鸟, 专注UI开发</view>
      <view class="shadow-title tn-color-indigo tn-text-shadow-cyan--light">图鸟, 专注UI开发</view>
    </layout-content>
  </layout>
</template>

<script lang="ts" setup>
import Layout from '@/components/layout/index.vue'
import LayoutContent from '@/components/layout/content.vue'
</script>

<style lang="scss" scoped>
.shadow-block {
  display: inline-block;
  width: calc(100% - 8rpx);
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20rpx;
  &:last-child {
    margin-bottom: 0rpx;
  }

  &.image {
    background-image: url(https://vkceyugu.cdn.bspapp.com/VKCEYUGU-7207d16b-b9c3-4105-8d0d-e9e0c7785f66/605563a1-a210-42f3-99e4-8de3c655c59e.jpg);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
  }

  .title {
    position: relative;
  }
}

.shadow-title {
  font-size: 70rpx;
}
</style>
